<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>
            X-admin v1.0
        </title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="format-detection" content="telephone=no">
        <link rel="stylesheet" href="/P201702/Fly/Public/Admin/css/x-admin.css" media="all">
        <script src="/P201702/Fly/Public/Admin/lib/layui/layui.js" charset="utf-8"></script>
    </head>
    <body>
        <div class="x-body">
            <form class="layui-form" method="post" action="<?php echo U('admin/goods/add');?>">
                <div class="layui-form-item">
                    <label class="layui-form-label">商品分类 </label>
                    <div class="layui-input-block">
                      <select name="cate_id" lay-filter="aihao">
                            <?php foreach ($cate as $row) { ?>
                                <option value="<?php echo $row['cid'] ?>"><?php echo $row['cname'] ?></option>
                            <?php } ?>
                      </select>
                    </div>
                  </div>
                <div class="layui-form-item">
                    <label for="L_email" class="layui-form-label">
                        <span class="x-red">*</span>商品名
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="L_email" name="good_name" required="" lay-verify="required"
                        autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="L_username" class="layui-form-label">
                        <span class="x-red">*</span>货号
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="L_username" name="good_number" required="" lay-verify="required"
                        autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="L_pass" class="layui-form-label">
                        <span class="x-red">*</span>单位
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="L_pass" name="good_unit" required="" lay-verify="required"
                        autocomplete="off" class="layui-input">
                    </div>
                    <div class="layui-form-mid layui-word-aux">
                        6到16个字符
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">商品详情</label>
                <div class="layui-input-block">
                  <textarea placeholder="请输入内容" class="layui-textarea" name="good_detail"></textarea>
                </div>
              </div>
                <div class="layui-form-item">
                    <label for="L_repass" class="layui-form-label">
                    </label>
                    <input type="submit"  class="layui-btn" value="增加">
                </div>
            </form>
        </div>
        <script src="./lib/layui/layui.js" charset="utf-8">
        </script>
        <script src="./js/x-layui.js" charset="utf-8">
        </script>
        <script>
            layui.use(['form','layer'], function(){
                $ = layui.jquery;
              var form = layui.form()
              ,layer = layui.layer;
              
            });
        </script>
    </body>
</html>